Objectives

To understand how travel time changes for an office move to one or more new London locations.
To visualise the output

Note: This code will only work for a move within London because TFL Journey Planner only works for journeys to London postcodes. However, the code allows for staff locations to be outside London

Getting started - data sources

OS boundaryline from: https://www.ordnancesurvey.co.uk/business-and-government/products/boundary-line.html

'Dissolve' district_borough_unitary_region.shp to get outline of GB 'Dissolve' greater_london_const_region.shp to get outline of London

I have included the resultant shapefile in this repo gb_london_simplified_final.shp

Download os codepoint open from: (This is a mapping between postcodes and geolocations) https://www.ordnancesurvey.co.uk/business-and-government/products/code-point-open.html

We will be using the list of stations provided by ORR, which will be read in directly. The source is here http://orr.gov.uk/statistics/published-stats/station-usage-estimates

Things not included

I have not included my tfl API key. You need to obtain one from https://api.tfl.gov.uk/ You need a file called .env that looks like this but contains your details

{"app_id": "abc123", "app_key": "abc123", "orig_pc":"EC4M 8AD", "dest_pc":"NW1 0NS", "orig_name":"stpauls", "dest_name":"camden"}